#include <stdio.h>
#include <stdint.h>

typedef struct {
    uint8_t arr[100];
    uint8_t* head;
    uint8_t* tail;
}object_t;

uint8_t entry(object_t* object, uint8_t data);
uint8_t delete(object_t* object);
uint8_t display(object_t* object);

int main(void)
{
    object_t object = {
        .arr = {0},
        .head = object.tail = object.arr,
    };
    if (entry(&object, 3) == 1) {
        printf("entry win\n");
    }
    else {
        printf("entry false\n");
    }

    if (entry(&object, 5) == 1) {
        printf("entry win\n");
    }
    else {
        printf("entry false\n");
    }

    display(&object);
}

uint8_t entry(object_t* object, uint8_t data)
{
    *object->tail = data;
    object->tail++;
    
    return 1;
}

uint8_t delete(object_t* object)
{

}

uint8_t display(object_t* object)
{
    uint8_t* temp = object->head;
    while(temp != object->tail)
    {
        printf("%d\t", *object->tail);
    }


}